const amount=JSON.parse(window.localStorage.getItem('amount'))
const un=JSON.parse(window.localStorage.getItem('user'))
var qi;
// const islogin=un.islogin
// const username=un.username
// let log={islogin:false,username:null};
if(un===null){
    qi={islogin:false,username:null,address:'成都'}
}
else{
    qi=un
}



const state={cartlist:JSON.parse(window.localStorage.getItem('cartlist'))||[],amount:amount||0
,user:{islogin:qi.islogin,username:qi.username,token:'',address:qi.address}
,pageTitle: '首页',
addressProvince: '四川',
addressCity: '成都',
cityPickerVisible: false}
export default state